﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Đăng ký thành viên</title>
    <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.debug.js") %>" type="text/javascript"></script>  
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.debug.js") %>" type="text/javascript"></script>   
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
    <script src="/Scripts/vgo_01.js"></script>
    <link href="/Content/vgo_01style.css" rel="Stylesheet" />
</head>
<body>
    <div>
         <center>
            <form method="post" action="/ThanhVien/DangKy/">
            <table>
                <tr>
                    <td><span>Họ tên:</span></td>
                    <td><input type="text" name="Hoten" id="Hoten"/></td>
                </tr>
                <tr>
                    <td><span>Tên đăng nhập</span></td>
                    <td>
                        <input type="text" id="TenDangNhap" name="TenDangNhap" />
                        <input type="button" name="checkUser" id="checkUser" value="Kiểm tra" />
                        <span class="errorMsg" id="userMsg"></span>
                    </td>
                </tr>
                <tr>
                    <td><span>Mật khẩu</span></td>
                    <td><input type="password" name="MatKhau" id="MatKhau" /></td>
                </tr>
                <tr>
                    <td><span>Xác nhận mật khẩu</span></td>
                    <td><input type="password" name="XacNhanMK" id="XacNhanMK"/></td>
                </tr>
                <tr>
                    <td><span>Email</span></td>
                    <td><input type="text" name="Email" id="Email" /></td>
                </tr>
                <tr>
                    <td><span>Ngày Sinh</span></td>
                    <td>
                        <select name="Ngay">
                            <option id="ChonNgay">Ngày</option>
                            <% for (int i = 1; i <= 31; i++)
                               { 
                            %>
                                <% if (i < 10)
                                { %>
                               <option id="0<%: i %>">0<%: i%></option>  
                               <%}else %>
                               <option id="<%: i %>"><%: i%></option>  
                            <% } %>
                        </select>/
                        <select name="Thang">
                             <option id="chonThang">Tháng</option>
                            <% for (int j = 1; j <= 12; j++)
                               { 
                            %>
                            <% if (j < 10)
                                { %>
                               <option id="0<%: j %>">0<%: j%></option>  
                               <%} else%>
                                <option id="<%: j %>"><%: j%></option>  
                            <% } %>
                        </select>/
                        <select name="Nam">
                              <option id="chonNam">Năm</option>
                            <% for (int k = 1940; k <= DateTime.Now.Year; k++)
                               { 
                            %> 
                               <option id="<%:k %>"><%: k%></option>  
                            <% } %>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td><span>CMND</span></td>
                    <td><input type="text" name="CMND" id="CMND" /></td>
                </tr>
                <tr>
                    <td><span>Ngày cấp</span></td>
                    <td> 
                        <select name="Ngay1">
                            <option id="NgayCap">Ngày</option>
                            <% for (int l = 1; l <= 31; l++)
                                { 
                            %>
                                <% if (l < 10)
                                { %>
                                <option id="0<%: l%>_cmt">0<%: l%></option>  
                                <%}else %>
                                <option id="<%: l %>_cmt"><%: l%></option>  
                            <% } %>
                        </select>/
                        <select name="Thang1">
                                <option id="ThangCap">Tháng</option>
                            <% for (int m = 1; m <= 12; m++)
                                { 
                            %>
                                <% if (m < 10)
                                { %>
                                <option id="0<%: m%>_cmt">0<%: m%></option>  
                                <%} else%>
                                <option id="<%: m %>_cmt"><%: m%></option>  
                            <% } %>
                        </select>/
                        <select name="Nam1">
                                <option id="NamCap">Năm</option>
                            <% for (int t = 1940; t <= DateTime.Now.Year; t++)
                                { 
                            %> 
                                <option id="<%: t%>_cmt"><%: t%></option>  
                            <% } %>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td><span>Nơi cấp</span></td>
                    <td>
                        <select name="NoiCapCMT">
                          <option id="hn">Hà Nội</option>
                          <option id="tpHCM">TPHCM</option>
                       </select>
                    </td>
                </tr>
                <tr>
                    <td><span>Địa chỉ</span></td>
                    <td><input type="text" name="DiaChi" id="DiaChi" /></td>
                </tr>
                <tr>
                    <td><span>Quê quán</span></td>
                    <td><input type="text" name="QueQuan" id="QueQuan" /></td>
                </tr>
                 <tr>
                    <td><span>Số điện thoại</span></td>
                    <td><input type="text" name="SDT" id="SDT" /></td>
                </tr>
                 <tr>
                    <td></td>
                    <td>
                        <input type="submit" value="Đăng ký" name="btn_DangKy" id="btn_DangKy" />
                        <input type="reset" value="Làm lại" name="btn_reset" id="btn_reset" />
                    </td>
                </tr>
            </table>
            </form>
         </center>   
    </div>
</body>
</html>
